package com.woniuxy.happylife.service.impl;

import com.woniuxy.happylife.dao.UserAllDao;
import com.woniuxy.happylife.dto.FormInLineEntity;
import com.woniuxy.happylife.dto.UserRoleDto;
import com.woniuxy.happylife.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

/**
 * @Classname UserServiceImpl
 * @Description TODO
 * @Version 1.0.0
 * @Date 2022/2/21 10:11
 * @Created by hang
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    UserAllDao userAllDao;
    @Override
    public ArrayList<UserRoleDto> findAllUser(FormInLineEntity<UserRoleDto> formInLineEntity) {
     return  userAllDao.findAllUser(formInLineEntity);
    }

    @Override
    public int updateStatus(UserRoleDto userRoleDto) {
      int i =  userAllDao.updateStatus(userRoleDto);
        return i;
    }

    @Override
    public UserRoleDto findOne(UserRoleDto userRoleDto) {
        UserRoleDto userRoleDto1 = userAllDao.findOne(userRoleDto);
        return userRoleDto1;
    }

    @Override
    public int updateUser(UserRoleDto userRoleDto) {
     int i = userAllDao.updateUser(userRoleDto);
     return i;
    }
}
